package leetcode;

public class Demo1 {

    public static void main(String[] args) throws Exception{
     Thread t1=   new Thread(()->{
            System.out.println("xx");
        });
        t1.start();
        t1.join();

        Thread t2=   new Thread(()->{
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("22");
        });
        t2.start();
        t2.join();

        Thread t3=   new Thread(()->{
            System.out.println("33");
        });
        t3.start();
        t3.join();
    }
}
